package com.paat.generate;

import com.paat.generate.core.PaatGenerator;
import com.paat.generate.core.ProjectInfo;

import java.io.IOException;

/**
 * 启动运行
 *
 * @author qi.ren@paat.com
 * @since 2019/4/18
 */
public class Application {

  public static void main(String[] args) throws IOException {
    ProjectInfo config = new ProjectInfo();
    config.setRootProjectName("aulton-boss-oa");
    config.setRootProjectPath("C:\\workspace-aulton\\abs\\aulton-boss-oa");
    config.setGroupId("com.aulton.boss.oa");

    // 服务相关配置
    config.setServiceName("order");
    config.setPackageName("com.aulton.boss.oa.order");
    config.setDbName("abs_order");
    config.setSwaggerTitle("订单服务");
    config.setServicePort(8080);

    config.setOverride(true);

    PaatGenerator paatGenerator = new PaatGenerator(config);
    paatGenerator.execute();
  }
}
